﻿//Write an expression that checks if given integer is odd or even.

using System;

class OddOrEven
{
    static void Main()
    {
        Console.Write("Input number to check if odd or event: ");
        int integerToCheck = int.Parse(Console.ReadLine());
        if (integerToCheck == 0)
            Console.WriteLine("Integer number {0} is neither odd nor even");
        else
        {
            if ((integerToCheck & 1) == 0)
                Console.WriteLine("Integer number {0} is even", integerToCheck);
            else
                Console.WriteLine("Integer number {0} is odd", integerToCheck);
        }
    }
}
